package quotation.web.element.ddd.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import quotation.global.BaseEntity;

import java.math.BigDecimal;

/**
 * @author lyx
 * @date 2025/2/24
 * 报价元素
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "element")
public class ElementEntity extends BaseEntity {

    @ApiModelProperty(value = "主表id")
    private Long quotationSysId;

    @ApiModelProperty(value = "元素名")
    private String name;

    @ApiModelProperty("推荐为英文变量，无重复")
    private String key;

    private BigDecimal value;

}
